package com.task.scheduling.model;


import java.util.Date;

/**
 * 任务的描述
 * @author Administrator
 *
 */
public class TaskSchedulingModel extends BaseModel {

	//这个是与业务相关的一个id，保证同一个业务，uuid不重复
	private String uuid;
	//业务id
	private Integer bizId;
	//任务的执行次数
	private Integer execCount;
	//任务的最大执行次数
	private Integer maxExecCount;
	//重试次数
	private Integer retryCount;
	//任务数据
	private String taskData;
	//任务状态
	private Integer taskStatus;
	//任务类型
	private Integer taskType;
	//记录任务执行信息(主要是异常信息，执行失败时可能有)
	private String taskMessage;
	//任务的执行者
	private String executor;
	//每隔一段时间计数加1,来检测长时间执行的任务还活着
	private Integer timeCount;
	//任务是否处在监控中
	private Integer monitor;
	//  execution_time Date COMMENT "任务什么时候执行,立马执行，还是多长时间之后执行"
	private Date executionTime;
	//任务执行的时刻
	private Date doTime;
	//创建时间
	private Date createTime;
	//更新时间
	private Date updateTime;

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public Integer getBizId() {
		return bizId;
	}

	public void setBizId(Integer bizId) {
		this.bizId = bizId;
	}

	public Integer getExecCount() {
		return execCount;
	}

	public void setExecCount(Integer execCount) {
		this.execCount = execCount;
	}

	public Integer getMaxExecCount() {
		return maxExecCount;
	}

	public void setMaxExecCount(Integer maxExecCount) {
		this.maxExecCount = maxExecCount;
	}

	public Integer getRetryCount() {
		return retryCount;
	}

	public void setRetryCount(Integer retryCount) {
		this.retryCount = retryCount;
	}

	public String getTaskData() {
		return taskData;
	}

	public void setTaskData(String taskData) {
		this.taskData = taskData;
	}

	public Integer getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(Integer taskStatus) {
		this.taskStatus = taskStatus;
	}

	public Integer getTaskType() {
		return taskType;
	}

	public void setTaskType(Integer taskType) {
		this.taskType = taskType;
	}

	public String getTaskMessage() {
		return taskMessage;
	}

	public void setTaskMessage(String taskMessage) {
		this.taskMessage = taskMessage;
	}

	public String getExecutor() {
		return executor;
	}

	public void setExecutor(String executor) {
		this.executor = executor;
	}

	public Integer getTimeCount() {
		return timeCount;
	}

	public void setTimeCount(Integer timeCount) {
		this.timeCount = timeCount;
	}

	public Integer getMonitor() { return monitor; }

	public void setMonitor(Integer monitor) { this.monitor = monitor; }

	public Date getExecutionTime() {
		return executionTime;
	}

	public void setExecutionTime(Date executionTime) {
		this.executionTime = executionTime;
	}

	public Date getDoTime() {
		return doTime;
	}

	public void setDoTime(Date doTime) {
		this.doTime = doTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
